package org.autumn.jvm;

import java.sql.Time;
import java.util.concurrent.TimeUnit;

public class TestJconsole {
    public static void main(String[] args) throws InterruptedException {
        System.out.println(1);
        TimeUnit.SECONDS.sleep(30);
        byte[] bytes = new byte[1024 * 1024 * 10];
        System.out.println(2);
        TimeUnit.SECONDS.sleep(30);
        bytes = null;
        System.gc();
        System.out.println(3);
        TimeUnit.HOURS.sleep(1);
    }
}
